package ihm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;

public class frmMenu extends JFrame
{

	private JPanel contentPane;
	private JLabel lblIconUser;
	private JTextField textField;
	private JTextField textField_1;
	private JButton btnNewButton;
	private JLabel lblNomDutilisateur;
	private JLabel lblMotDePasse;
	private JButton btnAnnuler;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args)
	{
		EventQueue.invokeLater(new Runnable()
		{
			public void run()
			{
				try
				{
					frmMenu frame = new frmMenu();
					frame.setVisible(true);
				} catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public frmMenu()
	{
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		lblIconUser = new JLabel("  Se connecter");
		lblIconUser.setFont(new Font("Segoe UI", Font.PLAIN, 32));
		lblIconUser.setIcon(new ImageIcon(frmMenu.class.getResource("/images/user_icon.png")));
		lblIconUser.setBounds(10, 11, 331, 64);
		contentPane.add(lblIconUser);
		
		textField = new JTextField();
		textField.setBounds(10, 125, 414, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(10, 184, 414, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		btnNewButton = new JButton("Connexion");
		btnNewButton.setBounds(211, 215, 112, 23);
		contentPane.add(btnNewButton);
		
		lblNomDutilisateur = new JLabel("Nom d'utilisateur :");
		lblNomDutilisateur.setFont(new Font("Segoe UI", Font.PLAIN, 14));
		lblNomDutilisateur.setBounds(10, 100, 112, 14);
		contentPane.add(lblNomDutilisateur);
		
		lblMotDePasse = new JLabel("Mot de passe :");
		lblMotDePasse.setFont(new Font("Segoe UI", Font.PLAIN, 14));
		lblMotDePasse.setBounds(10, 156, 112, 17);
		contentPane.add(lblMotDePasse);
		
		btnAnnuler = new JButton("Annuler");
		btnAnnuler.setBounds(333, 215, 91, 23);
		contentPane.add(btnAnnuler);


	}
}
